﻿using System;

namespace FFmpegVideoClip.Lib.AdvancedFragmentProcessor.InternalProcessor
{
    internal class CallShell
    {
        public const string Cmd = "cmd.exe", PowerShell = "powershell.exe";
        public static void ShellTypeProcessNameIFSet(AdvancedParametersSchemeModule Modul)
        {
            if (Modul.ProcessorName.StartsWith("CallCmd", StringComparison.OrdinalIgnoreCase))
                Modul.ProcessorName = Cmd;
            if (Modul.ProcessorName.StartsWith("CallPowerShell", StringComparison.OrdinalIgnoreCase))
                Modul.ProcessorName = PowerShell;
        }
    }
}
